a_tuple = ('kfit','crazyit','Charlie')
i = 0;
while i<len(a_tuple):
    print(a_tuple[i])
    i += 1

src_list = [12,45,34,13,100,24,56,74,109]
a_list=[]
b_list=[]
c_list=[]
i=0
while i<len(src_list):
    if src_list[i]%3==0:
        a_list.append(src_list[i])
    elif src_list[i]%3==1:
        b_list.append(src_list[i])
    else:
        c_list.append(src_list[i])
    i += 1;
print(a_list)
print(b_list)
print(c_list)



for ele in a_tuple:
    print(ele)

my_dict = {'语文': 89,'数学': 92,'英语': 80}
for ele in my_dict.items():
    key,value = ele
    print(key)
    print(value)

for ele1 in my_dict.keys():
    print(ele1,my_dict[ele1])

src_list = [12,45,3.4,12,'fkit',45,3.4,'fkit',45,3.4]
result = {}
for ele in src_list:
    if ele in result:
        result[ele] += 1
    else:
        # result.setdefault(ele,1)
        result[ele] = 1
print(result)

a_range = range(10)
a_result = [x*x for x in a_range if x%2==0]
print(a_result)

a_generator = (x*x for x in a_range if x%2==0)
print(a_generator)
for i in a_generator:
    print(i,end='\t')
print('\n')
a_list = ['语文','数学','英语']
b_list = [80,78,100]
result = [(a,b)for a,b in zip(a_list,b_list)]
print(result)
print([x for x in reversed(b_list)])

print(sorted(b_list,reverse = True))